package com.mzj.saas.mservice.contract.repository;

import com.mzj.saas.mservice.contract.entity.ContractTemplatePaymentProject;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface ContractTemplatePaymentProjectRepository extends PagingAndSortingRepository<ContractTemplatePaymentProject, Long>, JpaSpecificationExecutor<ContractTemplatePaymentProject> {
List<ContractTemplatePaymentProject> findByContractTemplateNumber(String contractTemplateNumber);
@Transactional
 void deleteByContractTemplateNumber(String contractTemplateNumber);
}
